import axios from '../axios'
export default class customer {


  static async myAdmissionInsert(params) { //入伙登记新增
    let res = await axios.post('/business/admission/insert', params)
    return res.data
  }
  static async myAdmissionDetail(id) { //入伙登记详情
    let res = await axios.get(`/business/admission/detail?id=${id}`)
    return res.data
  }
  static async myAdmissionList(params) { //入伙登记列表
    let res = await axios.post(`/business/admission/list`, params)
    return res.data
  }
  static async myAdmissionUpdate(params) { //入伙登记修改
    let res = await axios.post(`/business/admission/update`, params)
    return res.data
  }
  static async myGetCustomerList(params) { //客户列表
    let res = await axios.post(`/business/admission/getCustomerList`, params)
    return res.data
  }
  static async myGetPopulationInformationList(params) { //客户列表 新接口
    let res = await axios.post(`/business/appUser/getPopulationInformationList`, params)
    return res.data
  }
  static async myTransferOwnershipInsert(params) { //过户新增
    let res = await axios.post(`/business/transferOwnership/insert`, params)
    return res.data
  }
  static async myGetTransferOwnershipDetail(id) { //过户详情
    let res = await axios.get(`/business/transferOwnership/detail?id=${id}`)
    return res.data
  }
  static async myGetBindingCustomerList(params) { //过户 获取房间绑定客户列表
    let res = await axios.post(`/business/transferOwnership/getBindingCustomerList`, params)
    return res.data
  }
  static async myGetOwnership() { //房屋归属列表
    let res = await axios.get(`/business/dictionary/queryList?category=ownership`)
    return res.data
  }
  static async myDictionaryQueryList(type) { //很多列表的集合
    let res = await axios.get(`/business/dictionary/queryList?category=${type}`)
    return res.data
  }
  static async myTransferOwnershipList(params) { //过户列表
    let res = await axios.post(`/business/transferOwnership/list`, params)
    return res.data
  }
  static async myTransferOwnershipUpdate(params) { //过户修改
    let res = await axios.post(`/business/transferOwnership/update`, params)
    return res.data
  }

  static async myMoveInAndOutInsert(params) { //迁入新增
    let res = await axios.post(`/business/moveInAndOut/insert`, params)
    return res.data
  }
  static async myMoveInAndOutUpdate(params) { //迁入修改
    let res = await axios.post(`/business/moveInAndOut/update`, params)
    return res.data
  }
  static async myMoveInAndOutDetail(id) { //迁入详情
    let res = await axios.get(`/business//moveInAndOut/detail?id=${id}`)
    return res.data
  }
  static async myMoveInAndOutList(params) { //迁入列表
    let res = await axios.post(`/business//moveInAndOut/list`, params)
    return res.data
  }
  static async myMoveInAndOutDelete(id) { //客户迁出
    let res = await axios.get(`/business//moveInAndOut/delete?id=${id}`)
    return res.data
  }

  static async myGetCustomerType(params) { //迁入迁出身份列表
    let res = await axios.get(`/business/dictionary/queryList?category=customer_type`)
    return res.data
  }

  static async myAppUserList(params) { // C端用户列表
    let res = await axios.post(`/business/appUser/list`, params)
    return res.data
  }
  static async myAppUserDetail(id) { //C端用户详情
    let res = await axios.get(`/business/appUser/detail?id=${id}`)
    return res.data
  }
  static async myGetBindingPopulationInformation(id) { //获取账号绑定的人口信息
    let res = await axios.get(`/business/appUser/getBindingPopulationInformation?id=${id}`)
    return res.data
  }
  static async myBindingPopulationInformation(id, populationInformationId) { //账号绑定人口信息(换绑)
    let res = await axios.get(`/business/appUser/bindingPopulationInformation?id=${id}&populationInformationId=${populationInformationId}`)
    return res.data
  }
  static async myUnBindingPopulationInformation(id, populationInformationId) { //解绑人口信息
    let res = await axios.get(`/business/appUser/unBindingPopulationInformation?id=${id}&populationInformationId=${populationInformationId}`)
    return res.data
  }
  static async myAppUserInsert(params) { //账号新增
    let res = await axios.post(`/business/appUser/insert`, params)
    return res.data
  }
  static async myAppUserUpdate(params) { //账号修改
    let res = await axios.post(`/business/appUser/update`, params)
    return res.data
  }
  static async myGetAppUser(id) { //账号详情
    let res = await axios.get(`/business/appUser/getAppUser?id=${id}`)
    return res.data
  }
  static async myDeleteLogic(id) { //账号删除
    let res = await axios.get(`/business/appUser/deleteLogic?id=${id}`)
    return res.data
  }
}